package com.victor.entity.group;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 旅游公司表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "t_lycompany")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Lycompany {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 主键id,

	@Column(name = "c_name", length = 50)
	private String c_name;//公司名称
	
	@Column(name = "c_introduce", length = 50)
	private String c_introduce;//公司简介
	
	@Column(name = "c_video", length = 50)
	private String c_video;//视频简介

	@Transient
	private List<LycompanyPhoto> lycompanyPhotos;//公司介绍图片
	
	@Transient
	private List<GroupTour> grouptours;//公司开设了那些景区的团游
	
	
}
